.TH "src/callhome.h" 3 "Fri Apr 15 2016" "Version 0.10.0-146_trunk" "libnetconf" \" -*- nroff -*-
.ad l
.nh
.SH NAME
src/callhome.h \- 
.PP
Functions to connect NETCONF server to a NETCONF client (Call Home)\&.  

.SH SYNOPSIS
.br
.PP
\fC#include <stdint\&.h>\fP
.br
\fC#include 'netconf\&.h'\fP
.br

.SS "Functions"

.in +1c
.ti -1c
.RI "struct nc_session * \fBnc_callhome_accept\fP (const char *username, const struct nc_cpblts *cpblts, int *timeout)"
.br
.RI "\fIAccept incoming Call Home connection and create NETCONF session on it\&. \fP"
.ti -1c
.RI "int \fBnc_callhome_connect\fP (struct nc_mngmt_server *host_list, uint8_t reconnect_secs, uint8_t reconnect_count, const char *server_path, char *const argv[], int *com_socket)"
.br
.RI "\fIConnect NETCONF server to a management center (NETCONF client) using Call Home mechanism\&. \fP"
.ti -1c
.RI "int \fBnc_callhome_listen\fP (unsigned int port)"
.br
.RI "\fIStart listening on client side for incoming Call Home connection\&. \fP"
.ti -1c
.RI "int \fBnc_callhome_listen_stop\fP (void)"
.br
.RI "\fIStop listening on client side for incoming Call Home connection\&. \fP"
.ti -1c
.RI "struct nc_mngmt_server * \fBnc_callhome_mngmt_server_add\fP (struct nc_mngmt_server *list, const char *host, const char *port)"
.br
.RI "\fIAdd a new management server specification to the end of a list\&. \fP"
.ti -1c
.RI "int \fBnc_callhome_mngmt_server_free\fP (struct nc_mngmt_server *list)"
.br
.RI "\fIFree a management server description structure(s)\&. The function doesn't free only the item refered by given pointer, but the complete list of management servers is freed\&. \fP"
.ti -1c
.RI "struct nc_mngmt_server * \fBnc_callhome_mngmt_server_getactive\fP (struct nc_mngmt_server *list)"
.br
.RI "\fISearches for the item from the list, which was marked and used by the last call to \fBnc_callhome_connect()\fP to a successfully establish Call Home connection\&. \fP"
.ti -1c
.RI "int \fBnc_callhome_mngmt_server_rm\fP (struct nc_mngmt_server *list, struct nc_mngmt_server *remove)"
.br
.RI "\fIRemove the specified management server description from the list\&. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Functions to connect NETCONF server to a NETCONF client (Call Home)\&. 


.PP
\fBAuthor:\fP
.RS 4
Radek Krejci rkrejci@cesnet.cz Copyright (c) 2012-2014 CESNET, z\&.s\&.p\&.o\&.
.RE
.PP
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
.IP "1." 4
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer\&.
.IP "2." 4
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution\&.
.IP "3." 4
Neither the name of the Company nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission\&.
.PP
.PP
ALTERNATIVELY, provided that this notice is retained in full, this product may be distributed under the terms of the GNU General Public License (GPL) version 2 or later, in which case the provisions of the GPL apply INSTEAD OF those given above\&.
.PP
This software is provided ``as is, and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed\&. In no event shall the company or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage\&. 
.SH "Author"
.PP 
Generated automatically by Doxygen for libnetconf from the source code\&.
